/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_test_module_action_paramtersDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;

    public T_test_module_action_paramtersDetachedCriteria() {
	super(
		org.testis.orm.classes.T_test_module_action_paramters.class,
		org.testis.orm.classes.T_test_module_action_paramtersCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
    }

    public T_test_module_action_paramtersDetachedCriteria(
	    DetachedCriteria aDetachedCriteria) {
	super(
		aDetachedCriteria,
		org.testis.orm.classes.T_test_module_action_paramtersCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
    }

    public T_test_actionsDetachedCriteria createActionCriteria() {
	return new T_test_actionsDetachedCriteria(createCriteria("Action"));
    }

    public T_test_dataobject_parametersDetachedCriteria createParameterCriteria() {
	return new T_test_dataobject_parametersDetachedCriteria(
		createCriteria("Parameter"));
    }

    public T_test_module_action_paramters uniqueT_test_module_action_paramters(
	    PersistentSession session) {
	return (T_test_module_action_paramters) super.createExecutableCriteria(
		session).uniqueResult();
    }

    public T_test_module_action_paramters[] listT_test_module_action_paramters(
	    PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_test_module_action_paramters[]) list
		.toArray(new T_test_module_action_paramters[list.size()]);
    }
}
